<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新闻管理系统</title>
<link rel="stylesheet" href="../css/index.css" />
<link rel="stylesheet" type="text/css" href="../css/table.css" />
<script src="js/down_menu.js"></script>
<script type="text/javascript" src="../js/jump.js" ></script>
</head>
<body>
<div class="top">
		<div class="top_1">
			<img src="../img/logo.png" />
			<div class="sousuo">
				<input type="text" placeholder="请输入所用查询的信息" /> <a>搜索</a>
			</div>
			<div id="posern">
				<div class="posern">
					<img src="../img/user.jpg">
					<ul id="list">
						<%-- <li> ${sessionScope.loginUserName}</li> --%>
						<li><a href="<%=path%>/users/Users_queryById.action?userId=<s:property value="#session.loginUser.userId"/>">我的信息</a></li>
						<li><a href="<%=path%>/users/Users_logout.action">退出</a></li>
					</ul>
				</div>
			</div>
		</div>
	</div>
	<div class="conter">
		<ul id="nav">
			<li class="li_backg">首页</li>
			<li><a href="<%=path%>/news/News_queryCheck.action">审核新闻</a></li>
			<li><a href="<%=path%>/users/Users_query.action">查看用户</a></li>
			<li><a href="<%=path%>/users/Users_add.jsp">添加用户</a></li>
		</ul>

		<div class="right_index">
			<table id="first" class="first-table">
					<thead>
						<tr>
							<th>标题</th>
							<!-- <th>发布人</th> -->
							<th>发布日期</th>
							<th>访问量</th>
						</tr>
					</thead>
					<tbody>
						<s:iterator value="#session.news_checkAll" var="news">
						<tr>
							<td><a href="<%=path%>/news/News_queryById.action?type=checkById&nid=<s:property value="#news.newsId"/>"><s:property value="#news.title"/></a></td>
							<td><s:property value="#news.time"/></td>
							<td><s:property value="#news.count"/></td>
						</tr>
						</s:iterator>
					</tbody>
				</table>
		</div>
	</div>
	
</body>
</html>